

local mt = ac.skill['毁灭']
mt.area = 900
mt.missile_art = [[Abilities\Spells\Undead\Impale\ImpaleHitTarget.mdl]]
mt.missile_speed = 2700


function mt:on_cast_shot()
    local hero = self.owner
    local point = hero:get_point()
    local damage = hero:get('攻击') * self.data1/100
    hero:force_animation('spell',0.2)
    point:create_effect_diffuse(self.area,self.missile_speed,self.missile_art,150,150)
    hero:diffuse_damage(point,self.area,self.missile_speed){
        damage_type = '魔法',
        damage = damage,
        skill = self,
        start = function(u)
            u:add_buff '击飞'{time = 0.5} 
            u:add_buff '晕眩'{time = 2} 
        end
    }
end


local mt = ac.skill['海妖外壳']
mt.skill_type = 'passive'

function mt:on_cast_shot()
    self:gc(hero:add('力量成长',self.data2))
    self:gc(hero:event '单位-受到攻击命中'(function(_,_,target)
        self:mul(self.data1)
    end))
end






